import axios from 'axios'

const service=axios.create({
    baseURL:"http://121.89.205.189:3000/admin"
})

service.interceptors.request.use((config)=>{

    config.headers.token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbm5hbWUiOiJhZG1pbiIsImlhdCI6MTY3NzMwNjQ1NSwiZXhwIjoxNjc3MzM1MjU1fQ.TFMsFpeHRXSlM5TpsQLDf6XzL_6WA5ZTTSj2qm_h21c"
    return config
})


service.interceptors.response.use((res)=>{
    return res
})


export default  service